﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace imaginecup
{
    public partial class MessageItem : UserControl
    {
        public MessageItem()
        {
            InitializeComponent();
        }

        public MessageItem(ServiceReference1.CMessage m)
        {
            InitializeComponent();
            this.tbDate.Text = m.PostTime.ToString();
            this.tbMessage.Text = m.Comment;
            this.tbName.Text = m.Name;
            this.tbPosition.Text = "Lat:" + m.Latitude + " Longtitude:" + m.Longtitude;
        }
    }
}
